import request from '@/utils/request'

export const getAllChannelList = () => request({
  method: 'GET',
  url: '/v1_0/channels'
})

export const setChannelsList = channel => request({
  method: 'PATCH',
  url: 'v1_0/user/channels',
  data: {
    channels: [channel]
  }
})

export const deleteChannel = channelID => request({
  method: 'DELETE',
  url: `v1_0/user/channels/${channelID}`
})
